package com.rui.patterns.decorator;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Garnish
 * @createTime : [2022/2/22 16:19]
 * @description : [抽象装饰着角色]
 */

public abstract class Garnish extends FastFood{

    /**
     * 声明快餐类的变量
     */
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
